From c4b6bcf9f92970c74c6ec39ba78ed8941ce13faa Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 23 Apr 2015 13:08:40 +0200 Subject: [PATCH] adjust assertion in alloc_heap_pages() Older gcc warns (and due to -Werror fails) on this ASSERT() now that "node" is of unsigned type. Make it more useful at once. Coverity-ID: 1055630 Signed-off-by: Jan Beulich Acked-by: Tim Deegan Reviewed-by: Andrew Cooper --- xen/common/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 986895d5d0..8500ed7c79 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -604,7 +604,7 @@ static struct page_info *alloc_heap_pages( } first_node = node; - ASSERT(node >= 0); + ASSERT(node < MAX_NUMNODES); ASSERT(zone_lo <= zone_hi); ASSERT(zone_hi < NR_ZONES); -- 2.30.2